package com.lsy.android.pingpang.view;

import com.lsy.android.pingpang.BluetoothGameActivity;
import com.lsy.android.pingpang.R;

import android.app.Activity;
import android.view.MotionEvent;

public class BluetoothClientView extends GameView {

	public BluetoothClientView(Activity activity) {
		super(activity);
	}

	@Override
	String getPlayer1Name() {
		return "Player1";
	}

	@Override
	String getPlayer2Name() {
		return "Player2";
	}

	@Override
	int getTitleDrawableId() {
		return R.drawable.game_title3;
	}

	@Override
	boolean autoUptateBat() {
		return false;
	}

	@Override
	public boolean onTouchEvent(MotionEvent event) {
		if (event.getY() > (float) (BluetoothGameActivity.sJogo.yMax / 4 * 3)) {
			BluetoothGameActivity.sJogo.Meio1 = event.getX();
		}
		return true;
	}

	@Override
	boolean showStartButton() {
		return false;
	}

	@Override
	int getGameViewStyle() {
		return 0;
	}

}
